'''
爬虫
'''

from selenium import webdriver

def f():
    driver = webdriver.Chrome()
    driver.get('https://www.biqumo.com/wanben/')

    urls =  driver.find_elements_by_xpath('//*[@id="main"]/div[1]/ul/li/span[2]/a')

    urls = [url.get_attribute('href') for url in urls]
    # print(urls)

    for url in urls:
        g(url)

def g(url):
    driver = webdriver.Chrome()
    driver.get('https://www.biqumo.com/67_67468/')
    title = driver.find_element_by_tag_name('h2').text
    print(title)
    links = driver.find_elements_by_xpath('/html/body/div[5]/dl/dd/a')
    links = [link.get_attribute('href') for link in links]
    for link in links:
        m(link)

def m(link):
    pass